<template>
  <div>
    <van-tabbar route v-model="active" active-color="green" inactive-color="#000">
      <van-tabbar-item replace to="/weChat" icon="comment-o">微信</van-tabbar-item>
      <van-tabbar-item replace to="/contacts" icon="friends-o">通讯录</van-tabbar-item>
      <van-tabbar-item replace to="/discover" icon="browsing-history-o">发现</van-tabbar-item>
      <van-tabbar-item replace to="/profile" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { ref } from "vue";
export default {
  data() {
    return { 
      active: '/weChat',
      }
  },
  methods:{

  },
};
</script>

<style>
.van-tabbar{
  background-color: #f8f8f8;
}
.van-tabbar .van-tabbar-item{
  background-color: #f8f8f8;
}
</style>